package com.winway.gggapp.ui;

import com.winway.gggapp.R;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class Start extends Activity {
	
	private static final String TAG = "Start";
	private Button start_btn_tg = null;
	private TextView start_textview_cynr = null;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.start);
		
		//布局初始化
		this.startInit();
	}
	
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.start, menu);
		return true;
	}
	
	/***
	 * 
	 * 布局初始化
	 * 
	 */
	private void startInit(){
		start_textview_cynr = (TextView)findViewById(R.id.start_textview_cynr);
		start_btn_tg = (Button) findViewById(R.id.start_btn_tg);
		
		String jdsc_text=(String) this.getResources().getString(R.string.start_textview_cynr);
		start_textview_cynr.setText("\u3000\u3000"+jdsc_text);
		
		start_btn_tg.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(Start.this, Register.class);
			    startActivity(intent);
			    finish();
			}
		});
	}

}
